package model

const (
	TuneType_Cls = "cls"
	TuneType_Det = "det"
	TuneType_Rec = "rec"
)

// Request 记录一次OCR请求
type Request struct {
	Id    int64  `json:"id" form:"id" query:"id" goblet:"id" xorm:"pk autoincr"`
	AppId int64  `json:"app_id" form:"app_id" query:"app_id" goblet:"app_id"`
	Path  string `json:"path" form:"path" query:"path" goblet:"path"`
}

// Request 记录一次标记为需要校正Cls/Det/Rec模型的请求
type TuneRequest struct {
	Id        int64 `json:"id" form:"id" query:"id" goblet:"id" xorm:"pk autoincr"`
	RequestId int64 `json:"request_id" form:"request_id" query:"request_id"`
	UserId    int64 `json:"user_id" form:"user_id" query:"user_id" goblet:"user_id"`
	TaskId    int64 `json:"task_id" form:"task_id" query:"task_id" goblet:"task_id"`
}

// Task 记录一次标记任务，用于校正模型过程中对特定需求的任务进行分类
type Task struct {
	Id          int64  `json:"id" form:"id" query:"id" goblet:"id" xorm:"pk autoincr"`
	Name        string `json:"name" form:"name" query:"name" goblet:"name"`
	Description string `json:"description" form:"description" query:"description" goblet:"description"`
	Tags        string `json:"tags" form:"tags" query:"tags" goblet:"tags"`
	Type        string `json:"type" form:"type" query:"type" goblet:"type"`
}

// Config 记录系统配置
type Config struct {
	Id    int64  `json:"id" form:"id" query:"id" goblet:"id" xorm:"pk autoincr"`
	Key   string `json:"key" form:"key" query:"key" goblet:"key"`
	Value string `json:"value" form:"value" query:"value" goblet:"value"`
}
